﻿using System;
using StudentWeb.Common;

namespace StudentWeb.Model
{
	/// <summary>
	/// CourseData
	/// </summary>
    [Serializable]
	public class CourseData
	{
		/// <summary>
		/// CourseDataID
        /// </summary>
        [FieldName("CourseDataID")]		
		public int CourseDataID
		{
			get;
			set;
		}
        
		/// <summary>
		/// CourseNo
        /// </summary>
        [FieldName("CourseNo")]		
		public string CourseNo
		{
			get;
			set;
		}
        
		/// <summary>
		/// CourseState
        /// </summary>
        [FieldName("CourseState")]		
		public int? CourseState
		{
			get;
			set;
		}
        
		/// <summary>
		/// CourseName
        /// </summary>
        [FieldName("CourseName")]		
		public string CourseName
		{
			get;
			set;
		}
        
		/// <summary>
		/// CourseType
        /// </summary>
        [FieldName("CourseType")]		
		public string CourseType
		{
			get;
			set;
		}
        
		/// <summary>
		/// CourseCredit
        /// </summary>
        [FieldName("CourseCredit")]		
		public decimal CourseCredit
		{
			get;
			set;
		}
        
		/// <summary>
		/// CourseTerm
        /// </summary>
        [FieldName("CourseTerm")]		
		public int? CourseTerm
		{
			get;
			set;
		}
        
		/// <summary>
		/// CourseInfo
        /// </summary>
        [FieldName("CourseInfo")]		
		public string CourseInfo
		{
			get;
			set;
		}
        
		/// <summary>
		/// RegDateTime
        /// </summary>
        [FieldName("RegDateTime")]		
		public DateTime RegDateTime
		{
			get;
			set;
		}
        
		/// <summary>
		/// RegUserID
        /// </summary>
        [FieldName("RegUserID")]		
		public int? RegUserID
		{
			get;
			set;
		}
        
		/// <summary>
		/// EditDateTime
        /// </summary>
        [FieldName("EditDateTime")]		
		public DateTime EditDateTime
		{
			get;
			set;
		}
        
		/// <summary>
		/// EditUserID
        /// </summary>
        [FieldName("EditUserID")]		
		public int? EditUserID
		{
			get;
			set;
		}
        
        public CourseData Clone()
        {
            return (CourseData)this.MemberwiseClone();
        }
        
        public CourseData()
        {
            CourseNo = string.Empty;
            CourseName = string.Empty;
            CourseType = string.Empty;
            CourseInfo = string.Empty;
            RegDateTime = ConvertHelper.DefaultDate;
            EditDateTime = ConvertHelper.DefaultDate;
        }
	}
}
